package com.han.spring.core.autowire;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.han.spring.core.p_namespace.Person;

/**
* @author hanpeng
* @version 创建时间：2020年7月7日 下午2:08:03
* @ClassName 类名称
* @Description 类描述
*/
public class AutowireTest {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("autowire.xml");
		Mother mother = context.getBean("mother", Mother.class);
		System.out.println(mother.getName());
		System.out.println(mother.getSon());
		context.close();
	}
}
